# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
pkgname=py3-dkimpy
pkgver=1.1.8
pkgrel=0
pkgdesc="DKIM, ARC, and TLSRPT email signing and verification"
url="https://launchpad.net/dkimpy/"
arch="noarch"
license="Zlib"
depends="python3 py3-aiodns py3-dnspython py3-authres py3-pynacl"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc $pkgname-doc"
source="https://launchpad.net/dkimpy/1.1/$pkgver/+download/dkimpy-$pkgver.tar.gz"
builddir="$srcdir/dkimpy-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m unittest
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
c8a53c01ab329e40ac66c1c77e40f104871fb9f52058a530d08b26599c20cd960f0f4b6a1e4be8e173332634ed0b10e0bf0711285a8eefa40ec5cfdbed74e12e  dkimpy-1.1.8.tar.gz
"
